#define _VERSION_MAJOR "0"
#define _VERSION_MINOR "1"
#define _VERSION_UPDATE "0"

#ifndef _RELEASE_TO_PUBLIC
//the following define will be replaced with the current svn version
#define _VERSION_SVN $WCREV$ 
#define _VERSION_SVN_MODIFIED $WCMODS?1:0$
#endif

#ifndef _VERSION_SVN
#define _VERSION_SVN 0
#define _VERSION_SVN_MODIFIED 0
#endif

#define __COMPILEDATE__ __DATE__
#define __COMPILETIME__ __TIME__
#define __TIMESTRING__ "$Date: 2010-12-01 20:24:19 +0200 (Wed, 01 Dec 2010) $"

class CVersionManagement
{
private:
	static char* versionString;
	static char* buildTimeString;
public:
	static char* getVersionString(void);
	static char* getBuildTimeString(void);
};

//

/*
You can either modify the version.h directly (not recommended)
or you can use SubWCRev to generate a new version.h containing the newest SVN Revision everytime you build the project.

To do this you need to add a new build event. You can do this if you right click your project on the left side
and select "settings" (last option).
A new window should open, where you can select "Build events" (second option from the bottom).
Next you select "Pre Build".
Now you just need to add the command.

Example 1:

Project file(.vcprj) is in C:\axium\ => $(ProjectDir) is "C:\axium\" by Visual Studio

Local svn root is in C:\axium\axium\
First Param is: $(ProjectDir)axium\

Includes in C:\axium\axium\include
Second Param is: $(ProjectDir)axium\include\version_template.h
Third Param is: $(ProjectDir)axium\include\version.h

Command:
SubWCRev.exe $(ProjectDir)axium\ $(ProjectDir)axium\include\version_template.h $(ProjectDir)axium\include\version.h

Example 2:
Project file(.vcprj) is in C:\axium\Project\ => $(ProjectDir) is "C:\axium\Project\"

Local svn root is in C:\axium\axium\
First Param is: $(ProjectDir)..\axium\

Includes in C:\axium\axium\include
Second Param is: $(ProjectDir)..\axium\include\version_template.h
Third Param is: $(ProjectDir)..\axium\include\version.h

Command:
SubWCRev.exe $(ProjectDir)..\axium\ $(ProjectDir)..\axium\include\version_template.h $(ProjectDir)..\axium\include\version.h
*/
